package com.xinhe.web.reposity;

import com.xinhe.web.entity.OrderLogistics;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface OrderLogisticsRepository  extends JpaRepository<OrderLogistics, Long> {
    @Query(value = "select * from tb_order_logistics where removed = 0 and f_order_id = ?1", nativeQuery = true)
    OrderLogistics findByOrderId(Long id);
}
